#ifndef SPRITE_H
#define SPRITE_H

#include "../Engine_global.h"

class ENGINESHARED_EXPORT ESprite
{
    friend class EGraphicsObject;
    friend class EGraphicsObjectManager;
public:
    void setPivot(QPointF pivot);
    void setPivot(float x, float y);
    QPointF pivot() const;

    void setPos(QPointF pos);
    void setPos(float x, float y);
    QPointF pos() const;

    void setAngle(float angle);
    float angle() const;

    void setScale(QPointF scale);
    void setScale(float x, float y);
    QPointF scale() const;

    void setColor(QColor color);
    void setColor(int r, int g, int b);
    QColor color() const;

    void setAlpha(float alpha);
    float alpha() const;
private:
    ESprite();

    QPointF m_pivot;
    QPointF m_pos;
    float   m_fAngle;
    QPointF m_scale;
    QColor  m_color;
    float   m_fAlpha;
};

#endif // SPRITE_H
